
package dieci.system;

import dieci.database.PersistentObject;

/**
 *
 * @author DuckSys
 */
public class ProductStock implements PersistentObject{

    private int availableAmount;
    private int onReturnAmount;
    private int totalAmount;
    private Product Product;

    public ProductStock()
    {
    }

    public ProductStock(Product Product,int availableAmount, int onReturnAmount, int totalAmount)
    {
        this.availableAmount = availableAmount;
        this.onReturnAmount = onReturnAmount;
        this.totalAmount = totalAmount;
        this.Product = Product;
    }

    
    /**
     * Get the value of Product
     *
     * @return the value of Product
     */
    public Product getProduct()
    {
        return Product;
    }

    /**
     * Set the value of Product
     *
     * @param Product new value of Product
     */
    public void setProduct(Product Product)
    {
        this.Product = Product;
    }
    
    /**
     * Get the value of totalAmount
     *
     * @return the value of totalAmount
     */
    public int getTotalAmount()
    {
        return totalAmount;
    }

    /**
     * Set the value of totalAmount
     *
     * @param totalAmount new value of totalAmount
     */
    public void setTotalAmount(int totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    
    /**
     * Get the value of onReturnAmount
     *
     * @return the value of onReturnAmount
     */
    public int getOnReturnAmount()
    {
        return onReturnAmount;
    }

    /**
     * Set the value of onReturnAmount
     *
     * @param onReturnAmount new value of onReturnAmount
     */
    public void setOnReturnAmount(int onReturnAmount)
    {
        this.onReturnAmount = onReturnAmount;
    }

    /**
     * Get the value of availableAmount
     *
     * @return the value of availableAmount
     */
    public int getAvailableAmount()
    {
        return availableAmount;
    }

    /**
     * Set the value of availableAmount
     *
     * @param availableAmount new value of availableAmount
     */
    public void setAvailableAmount(int availableAmount)
    {
        this.availableAmount = availableAmount;
    }

    
    
}
